import fly from '../utils/request.js'
//顶部导航
export const channels =()=>{
    return fly.get('user/channels')
  }

//用户登录
export const   articles =(data)=>{
      return fly.get('articles?channel_id='+data.id+'&with_top=' + data.top + '&timestamp='+data.timestamp)
}